package com.atguigu.gmall.mq.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.atguigu.gmall.common.service.RabbitService;

@RestController
public class MqController {
    @Autowired
    private RabbitService rabbitService;

    @GetMapping("")
    public String simple(){
        boolean b = rabbitService.sendMessage("simple_exchange", "simple_routing", "gugugaga");
        return b+"";
    }

}
